package com.ccp.dev.im.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.HashSet;

/**
 * 匿名访问配置类
 */
@Component
public class ImUrlConfig {

    @Autowired
    public void addAnonymousUrls(HashSet<String> anonymousUrls) {
        //增加具有匿名访问权限的url
        //anonymousUrls.add("/demo/demo/demo");
    }


    @Autowired
    public void addRestUrls(HashSet<String> restUrls) {
        //增加具有rest风格的url
        restUrls.add("/im/");
    }

    @Autowired
    public void addDoNotXssFilter(HashSet<String> doNotXssFilter) {
        //增加不需要xss过滤的url
        //doNotXssFilter.add("/**");
    }
}
